import { createApp } from 'vue';
import App from './App.vue';

import router from './router/index';

import '@/assets/styles/reset.scss';
import '@/assets/styles/element-plus.scss';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'; //引入图标
import 'element-plus/dist/index.css'; //引入样式

import { drag } from '@/utils/directive';

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);

app.directive('drag', drag);

app.mount('#app');
